//请求后台的方法
import request from '@/request'

//获取系统环境信息
export function getEnvironmentInfo(data){
  return request({
    url:'/environment/getEnvironmentInfo',
    method: 'post',
	data
  })
}

//分页查询系统环境信息
export function getEnvironmentInfoByPage(data){
  return request({
    url:'/environment/getEnvironmentInfoByPage',
    method: 'post',
	data
  })
}

//分页查询系统环境信息新
export function getEnvironmentInfoByPageNew(data){
  return request({
    url:'/environment/getEnvironmentInfoByPageNew',
    method: 'post',
	data
  })
}


//添加系统环境信息
export function addEnvironmentInfo(data){
  return request({
    url:'/environment/addEnvironmentInfo',
    method: 'post',
	data
  })
}

//修改系统环境信息
export function updateEnvironmentInfo(data){
  return request({
    url:'/environment/updateEnvironmentInfo',
    method: 'post',
	data
  })
}

//删除系统环境信息
export function delEnvironmentInfo(data){
  return request({
    url:'/environment/delEnvironmentInfo',
    method: 'post',
	data
  })
}

//查询系统历史环境信息
export function getSystemHistoryAddr(data){
  return request({
    url:'/environment/getSystemHistoryAddr',
    method: 'post',
	data
  })
}


//分页查询交易跟踪
export function getBusinessFollowByPage(data){
  return request({
    url:'/environment/getBusinessFollowByPage',
    method: 'post',
	data
  })
}

/**
 * 交易详情
 * @param {Object} data
 */
export function getBusinessFollowByLog(params){
  return request({
    url:'/environment/getBusinessFollowByLog',
    method: 'post',
	params:params
  })
}

/**
 * 交易日志
 * @param {Object} data
 */
export function getFollowByLog(data){
  return request({
    url:'/environment/getFollowByLog',
    method: 'post',
	// responseType:'blob',
	data
  })
}

/**
 * 联通性测试
 * @param {Object} data
 */
export function executeCommand(data){
  return request({
    url:'/environment/executeCommand',
    method: 'post',
	data
  })
}

/**
 * 获取环境列表
 * @param {Object} params
 */
export function getEsbEnvironmentByEsbFlg(data){
  return request({
    url:'/esbEnvironment/getEsbEnvironmentByEsbFlg',
    method: 'post',
	data
  })
}




